package com.wicket.okrapp.web.contorller;

import com.wicket.okrapp.biz.service.ReviseTargetContentService;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/app/reviseTargetContent/")
public class ReviseTargetContentController {

  @Autowired
  ReviseTargetContentService reviseTargetContentService;
/**
   * D3执行循环增权重修订变更字段(公共)
   */
    @PostMapping("implementLoopAddWeightReviseChangeColCom")
    public OkrResult<ImplementLoopAddWeightReviseChangeColComRespDto> implementLoopAddWeightReviseChangeColCom(@RequestBody @Validated ImplementLoopAddWeightReviseChangeColComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementLoopAddWeightReviseChangeColCom(reqDTO));
    }
/**
   * D3执行修订批次条件判断(公共)
   */
    @PostMapping("implementReviseBatchTermJudgeCom")
    public OkrResult<ImplementReviseBatchTermJudgeComRespDto> implementReviseBatchTermJudgeCom(@RequestBody @Validated ImplementReviseBatchTermJudgeComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementReviseBatchTermJudgeCom(reqDTO));
    }
/**
   * D3-执行循环修订目标周期目标值(公共)
   */
    @PostMapping("implementLoopReviseTargetCycleValueCom")
    public OkrResult<ImplementLoopReviseTargetCycleValueComRespDto> implementLoopReviseTargetCycleValueCom(@RequestBody @Validated ImplementLoopReviseTargetCycleValueComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementLoopReviseTargetCycleValueCom(reqDTO));
    }
/**
   * D3新增修订单字段变更记录(公共)
   */
    @PostMapping("addReviseContSingleChangeColCom")
    public OkrResult<AddReviseContSingleChangeColComRespDto> addReviseContSingleChangeColCom(@RequestBody @Validated AddReviseContSingleChangeColComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.addReviseContSingleChangeColCom(reqDTO));
    }
/**
   * D3新增修订重新计算数据调度(公共)
   */
    @PostMapping("addReviseRecountDataDispatchCom")
    public OkrResult<AddReviseRecountDataDispatchComRespDto> addReviseRecountDataDispatchCom(@RequestBody @Validated AddReviseRecountDataDispatchComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.addReviseRecountDataDispatchCom(reqDTO));
    }
/**
   * D3执行分析修订目标值条件(公共)
   */
    @PostMapping("implementAnalyseReviseTargetValueTermCom")
    public OkrResult<ImplementAnalyseReviseTargetValueTermComRespDto> implementAnalyseReviseTargetValueTermCom(@RequestBody @Validated ImplementAnalyseReviseTargetValueTermComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementAnalyseReviseTargetValueTermCom(reqDTO));
    }
/**
   * D3执行分析修订权重条件(公共)
   */
    @PostMapping("implementAnalyseReviseWeightTermCom")
    public OkrResult<ImplementAnalyseReviseWeightTermComRespDto> implementAnalyseReviseWeightTermCom(@RequestBody @Validated ImplementAnalyseReviseWeightTermComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementAnalyseReviseWeightTermCom(reqDTO));
    }
/**
   * D3执行循环增目标周期名称修订变更字段(公共)
   */
    @PostMapping("implementLoopAddTargetCycleNameReviseChangeColCom")
    public OkrResult<ImplementLoopAddTargetCycleNameReviseChangeColComRespDto> implementLoopAddTargetCycleNameReviseChangeColCom(@RequestBody @Validated ImplementLoopAddTargetCycleNameReviseChangeColComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementLoopAddTargetCycleNameReviseChangeColCom(reqDTO));
    }
/**
   * D3执行分析修订目标周期名称条件(公共)
   */
    @PostMapping("implementAnalyseReviseTargetCycleNameTermCom")
    public OkrResult<ImplementAnalyseReviseTargetCycleNameTermComRespDto> implementAnalyseReviseTargetCycleNameTermCom(@RequestBody @Validated ImplementAnalyseReviseTargetCycleNameTermComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementAnalyseReviseTargetCycleNameTermCom(reqDTO));
    }
/**
   * D3执行循环增验收时间修订变更字段(公共)
   */
    @PostMapping("implementLoopAddReceptionTimeReviseChangeColCom")
    public OkrResult<ImplementLoopAddReceptionTimeReviseChangeColComRespDto> implementLoopAddReceptionTimeReviseChangeColCom(@RequestBody @Validated ImplementLoopAddReceptionTimeReviseChangeColComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementLoopAddReceptionTimeReviseChangeColCom(reqDTO));
    }
/**
   * D3执行分析修订验收时间条件(公共)
   */
    @PostMapping("implementAnalyseReviseReceptionTimeTermCom")
    public OkrResult<ImplementAnalyseReviseReceptionTimeTermComRespDto> implementAnalyseReviseReceptionTimeTermCom(@RequestBody @Validated ImplementAnalyseReviseReceptionTimeTermComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementAnalyseReviseReceptionTimeTermCom(reqDTO));
    }
/**
   * D3执行增指标分工设置修订变更字段(公共)
   */
    @PostMapping("implementAddObjectiveDivReviseChangeColCom")
    public OkrResult<ImplementAddObjectiveDivReviseChangeColComRespDto> implementAddObjectiveDivReviseChangeColCom(@RequestBody @Validated ImplementAddObjectiveDivReviseChangeColComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementAddObjectiveDivReviseChangeColCom(reqDTO));
    }
/**
   * D3获取指标扩展字段值中文名(公共)
   */
    @PostMapping("obtainAnalyseObjtiveExtendFieldValueNameCom")
    public OkrResult<ObtainAnalyseObjtiveExtendFieldValueNameComRespDto> obtainAnalyseObjtiveExtendFieldValueNameCom(@RequestBody @Validated ObtainAnalyseObjtiveExtendFieldValueNameComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.obtainAnalyseObjtiveExtendFieldValueNameCom(reqDTO));
    }
/**
   * D3执行增上级指标分工设置修订变更字段(公共)
   */
    @PostMapping("implementAddSuperiorObjectiveDivReviseChangeColCom")
    public OkrResult<ImplementAddSuperiorObjectiveDivReviseChangeColComRespDto> implementAddSuperiorObjectiveDivReviseChangeColCom(@RequestBody @Validated ImplementAddSuperiorObjectiveDivReviseChangeColComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementAddSuperiorObjectiveDivReviseChangeColCom(reqDTO));
    }
/**
   * D3执行重置目标内容检查项状态等(公共)
   */
    @PostMapping("implementResetTargetContCheckItemStateCom")
    public OkrResult<ImplementResetTargetContCheckItemStateComRespDto> implementResetTargetContCheckItemStateCom(@RequestBody @Validated ImplementResetTargetContCheckItemStateComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.implementResetTargetContCheckItemStateCom(reqDTO));
    }
/**
   * D3获取目标内容最新批次信息(公共)
   */
    @PostMapping("obtainTargetContNewBatchInfoCom")
    public OkrResult<ObtainTargetContNewBatchInfoComRespDto> obtainTargetContNewBatchInfoCom(@RequestBody @Validated ObtainTargetContNewBatchInfoComReqDto reqDTO){
    return OkrResult.success(reviseTargetContentService.obtainTargetContNewBatchInfoCom(reqDTO));
    }
}
